import tensorflow as tf
import numpy as np
#data structure
x_data=np.random.rand(100).astype(np.float32)
y_data=x_data*0.1+0.3
#tensorflow structure
weights=tf.Variable(tf.random_uniform())